Skip to content

fix(vanilla): preserve drag release over native controls - #264

Open
Bashar-Omar wants to merge 2 commits into
simonwep:masterfrom
Bashar-Omar:fix/160-video-controls-mouseup
Open

Bashar-Omar wants to merge 2 commits into
simonwep:masterfrom
Bashar-Omar:fix/160-video-controls-mouseup

Conversation

@Bashar-Omar

Copy link
Copy Markdown

Fixes #160.

Native video controls can consume the mouse release before it reaches the document, leaving an active selection without its normal stop/cleanup path.

This keeps the existing mouse interaction lifecycle and uses pointer capture only after a real drag has crossed the start threshold and beforedrag has accepted it. Capturing the active mouse pointer on the selection boundary keeps the compatibility mouseup in the page when the pointer is released over browser-native controls, so the existing _onTapStop path can finish normally.

The browser regression starts a normal selection, moves onto a native <video controls> strip, and releases there. It fails consistently on Chromium before the fix and passes after it.

Validation: the repository's Test packages workflow passes on the final branch head, including lint, package build, docs build, and Playwright coverage across Chromium, Firefox, and WebKit.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mouse selection doesn't work with video tag controls

1 participant